package com.itrencai.d3_polymorphic.api_object;

public class Test {
    public static void main(String[] args) {
        Student s=new Student("周曦",'男',19);
        System.out.println(s.toString());
        //直接输出对象变量，默认可以省略tostring调用不写的
        System.out.println(s);
    }
}
